﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using VIP.Domain.Core.DomainObject;

namespace VIP.Domain.Core.Factories
{
    /// <summary>
    /// 聚合根加载器
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IAggregateRootLoader<T> where T : AggregateRoot
    {
        Task<T> LoadAsync(Guid id);
        Task<bool> Save(T obj);
        Task<bool> Remove(Guid id);
    }
}
